//
//@File    :	9.8_twofile2.cpp
//@Time    :	2021/08/22 17:15:38
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	varibles with internal and external linkage
//
//两文件使用同一个tom变量,但使用了不同的dick和harry变量
#include <iostream>

using namespace std;
extern int tom;
static int dick=10;
int harry=200;

void remote_access()
{
    cout<<"remote_access() reports the following addresses:\n";
    cout<<&tom<<" = &tom. "<<&dick<<" = &dick, ";
    cout<<&harry<<" = &harry\n";
}